/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.amse.grigory.dchess.player;

/**
 *
 * @author grigory
 */
public class LocalPlayer implements IPlayer {

    private Object myLock;
    private int myX = -1,  myY = -1,  mySX = -1,  mySY = -1;
    private boolean myMoved;
    private int myColor;

    public LocalPlayer() {
        myLock = new Object();
    }

    public void calc() {
        myMoved = false;
    }
    
    public void stop(){
        
    }

    public Object lock() {
        return myLock;
    }

    public int getX() {
        return myX;
    }

    public int getY() {
        return myY;
    }

    public int getSX() {
        return mySX;
    }

    public int getSY() {
        return mySY;
    }

    public void setX(int x) {
        myX = x;
    }

    public void setY(int y) {
        myY = y;
    }

    public void setSX(int sx) {
        mySX = sx;
    }

    public void setSY(int sy) {
        mySY = sy;
    }

    public void move() {
        myMoved = true;
    }

    public boolean moved() {
        return myMoved;
    }

    public int getColor() {
        return myColor;
    }

    public void setColor(int color) {
        myColor = color;
    }
}
